Privacy Panel new pull request #25688
Privacy Panel new pull request #25688
Conversation
lon = pos.coords.longitude; | ||
|
||
this._sendSMS(number, navigator.mozL10n.get('sms-locate', { | ||
coords: lat + ',' + lon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
even better to pass lat and lon separately and let localizers use the local presentation form for coordinates.
Looks like we're missing all the binay files again... (not completely blocking) |
}.bind(this), 3000); | ||
}.bind(this); | ||
|
||
Commands.invokeCommand('ring', [86400, ringReply]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we're then multiplying by 1000 the duration in commands.js
...
so my phone will be ringing for more than 2 years I think :) not so sure about the UX...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They wanted the phone to ring infinetly...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't we stop when the phone is unlocked?
note: anybody can long press the power button, restart the phone and stop the ringer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How long the limit should be?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
corrected to no multiplication
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guys, this value represents only 1 day :) not 2 years.
60 sec * 60 min * 24h = 86400
and javascripts timestamps are with miliseconds so thats why this was multipled by 1000
Ad2 New patch should also have ability to stop ringer.
I have added the binaries/ |
@@ -0,0 +1,28 @@ | |||
'use strict'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure we can rm -r apps/privacy-panel/build
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, project will work, but build config allow us to combine all files into one file thanks to requirejs optimizer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the gaia build system also does this kind of optimizations, so it might be redundant.
anyway, I'm fine with it if we have make test-perf results showing that it helps, otherwise we shouldn't add the complexity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
we will need marionette tests for the interaction with the settings app.
|
} | ||
|
||
.icon-gt { | ||
background-image: url("images/gt.png"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we probably want to test background-size
for those to prevent the weird "big icon rendering" on the main screen
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you elaborate on that, please? How would you like to test this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please, test UI's like this using pseudolocales. They add ~30% to the string length which is what usually makes the text fit for most locales. The middle string seems like it may not fit.
4d3360f
to
85e4e2c
Compare
85e4e2c
to
2d66047
Compare
realMozSettings = navigator.mozSettings; | ||
navigator.mozSettings = mozSettings; | ||
|
||
navigator.mozL10n = { get: function() {} }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that enables you to remove mozL10n from this tests and just test for L10nAttrs object or string being passed into _sendSMS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
4a016e4
to
b3b7975
Compare
// lets wait till Promise resolve privacy-panel app. | ||
this.subject._getApp().then(function() { | ||
done(); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: we have to add one more function to avoid this _getApp()
is rejected (This would not happen and should not happen), and if that happen, we should throw out error. And no matter _getApp()
is resolved or rejected, we should always call done
to make sure tests can be run.
Please check https://github.com/mozilla-b2g/gaia/blob/master/apps/settings/test/unit/modules/apps_cache_test.js#L48
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
b3b7975
to
f3a6f04
Compare
f3a6f04
to
dc9a0db
Compare
dc9a0db
to
04b75a2
Compare
04b75a2
to
68d43c5
Compare
68d43c5
to
c7aeffc
Compare
Closing in favor of: 0f7bb15 |
This is a new pull request. We had to remove the old one due to big problems with git and some Schroedinger patches....